package com.findFish.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.system.mapper.RobotFishTrajectoryMapper;
import com.findFish.system.domain.RobotFishTrajectory;
import com.findFish.system.service.IRobotFishTrajectoryService;

/**
 * 机器鱼运动轨迹Service业务层处理
 * 
 * @author admin
 * @date 2025-03-31
 */
@Service
public class RobotFishTrajectoryServiceImpl implements IRobotFishTrajectoryService 
{
    @Autowired
    private RobotFishTrajectoryMapper robotFishTrajectoryMapper;

    /**
     * 查询机器鱼运动轨迹
     * 
     * @param id 机器鱼运动轨迹主键
     * @return 机器鱼运动轨迹
     */
    @Override
    public RobotFishTrajectory selectRobotFishTrajectoryById(Long id)
    {
        return robotFishTrajectoryMapper.selectRobotFishTrajectoryById(id);
    }

    /**
     * 查询机器鱼运动轨迹列表
     * 
     * @param robotFishTrajectory 机器鱼运动轨迹
     * @return 机器鱼运动轨迹
     */
    @Override
    public List<RobotFishTrajectory> selectRobotFishTrajectoryList(RobotFishTrajectory robotFishTrajectory)
    {
        return robotFishTrajectoryMapper.selectRobotFishTrajectoryList(robotFishTrajectory);
    }

    /**
     * 新增机器鱼运动轨迹
     * 
     * @param robotFishTrajectory 机器鱼运动轨迹
     * @return 结果
     */
    @Override
    public int insertRobotFishTrajectory(RobotFishTrajectory robotFishTrajectory)
    {
        return robotFishTrajectoryMapper.insertRobotFishTrajectory(robotFishTrajectory);
    }

    /**
     * 修改机器鱼运动轨迹
     * 
     * @param robotFishTrajectory 机器鱼运动轨迹
     * @return 结果
     */
    @Override
    public int updateRobotFishTrajectory(RobotFishTrajectory robotFishTrajectory)
    {
        return robotFishTrajectoryMapper.updateRobotFishTrajectory(robotFishTrajectory);
    }

    /**
     * 批量删除机器鱼运动轨迹
     * 
     * @param ids 需要删除的机器鱼运动轨迹主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishTrajectoryByIds(Long[] ids)
    {
        return robotFishTrajectoryMapper.deleteRobotFishTrajectoryByIds(ids);
    }

    /**
     * 删除机器鱼运动轨迹信息
     * 
     * @param id 机器鱼运动轨迹主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishTrajectoryById(Long id)
    {
        return robotFishTrajectoryMapper.deleteRobotFishTrajectoryById(id);
    }
}
